package org.celery.modules.shopStatics.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDate;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 店铺日数据统计表实体类
 *
 * @author Celery
 * @since 2023-08-26
 */
@Data
@TableName("celery_shop_statics_day")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ShopStaticsDay对象", description = "店铺日数据统计表")
public class ShopStaticsDay extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 采购表主键id
     */
    @ApiModelProperty(value = "采购表主键id")
    @JsonSerialize(using = ToStringSerializer.class)
  private Long id;
    /**
     * 店铺id
     */
    @ApiModelProperty(value = "店铺id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long shopId;
    /**
     * 日期
     */
    @ApiModelProperty(value = "日期")
    @DateTimeFormat(
            pattern = "yyyy-MM-dd"
    )
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private LocalDate date;
    /**
     * 商品数
     */
    @ApiModelProperty(value = "商品数")
    private Integer goodsCount;
    /**
     * 访客数
     */
    @ApiModelProperty(value = "访客数")
    private Integer userVisitCount;
    /**
     * 浏览量
     */
    @ApiModelProperty(value = "浏览量")
    private Integer viewCount;
    /**
     * 展现
     */
    @ApiModelProperty(value = "展现")
    private Integer display;
    /**
     * 支付买家数
     */
    @ApiModelProperty(value = "支付买家数")
    private Integer payUserCount;
    /**
     * 支付订单数
     */
    @ApiModelProperty(value = "支付订单数")
    private Integer payTicketCount;
    /**
     * 金额
     */
    @ApiModelProperty(value = "金额")
    private BigDecimal amount;
    /**
     * 操作记录
     */
    @ApiModelProperty(value = "操作记录")
    private String operateRecord;
    /**
     * 操作建议
     */
    @ApiModelProperty(value = "操作建议")
    private String operateSuggestion;


}
